#if !defined(_AUTILS_H_)
#define _AUTILS_H_

//#include "AObject.h"

class CAUtils
{
public:
	//returns [0, 1.0)
	static float Rand();
	//returns [mi, ma)
	static float Rand(float mi, float ma);
	//get angle
	static float getRotation(float y, float x);

	static bool almostEqual(float a, float b, float threhold = 0.0000001f);

	static CCSize getDistance(const CCRect& r1, const CCRect& r2);

	static CCSize distance(const CCRect& r1, const CCRect& r2);
};

#endif //_AUTILS_H_